var dllfile;
if is_string(argument0) then dllfile = argument0;
else dllfile = 'http_dll_2_3.dll';
global.define_buffer_create = external_define(dllfile,'buffer_create',dll_cdecl,ty_real,0);
global.define_buffer_destroy = external_define(dllfile,'buffer_destroy',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_exists = external_define(dllfile,'buffer_exists',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_to_string = external_define(dllfile,'buffer_to_string',dll_cdecl,ty_string,1,ty_real);
global.define_buffer_get_pos = external_define(dllfile,'buffer_get_pos',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_get_length = external_define(dllfile,'buffer_get_length',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_at_end = external_define(dllfile,'buffer_at_end',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_get_error = external_define(dllfile,'buffer_get_error',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_clear_error = external_define(dllfile,'buffer_clear_error',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_clear = external_define(dllfile,'buffer_clear',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_set_pos = external_define(dllfile,'buffer_set_pos',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_read_from_file = external_define(dllfile,'buffer_read_from_file',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_read_from_file_part = external_define(dllfile,'buffer_read_from_file_part',dll_cdecl,ty_real,4,ty_real,ty_string,ty_real,ty_real);
global.define_buffer_write_to_file = external_define(dllfile,'buffer_write_to_file',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_append_to_file = external_define(dllfile,'buffer_append_to_file',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_rc4_crypt = external_define(dllfile,'buffer_rc4_crypt',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_rc4_crypt_buffer = external_define(dllfile,'buffer_rc4_crypt_buffer',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_zlib_compress = external_define(dllfile,'buffer_zlib_compress',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_zlib_uncompress = external_define(dllfile,'buffer_zlib_uncompress',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_int8 = external_define(dllfile,'buffer_read_int8',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_uint8 = external_define(dllfile,'buffer_read_uint8',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_int16 = external_define(dllfile,'buffer_read_int16',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_uint16 = external_define(dllfile,'buffer_read_uint16',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_int32 = external_define(dllfile,'buffer_read_int32',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_uint32 = external_define(dllfile,'buffer_read_uint32',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_int64 = external_define(dllfile,'buffer_read_int64',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_uint64 = external_define(dllfile,'buffer_read_uint64',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_intv = external_define(dllfile,'buffer_read_intv',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_uintv = external_define(dllfile,'buffer_read_uintv',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_float32 = external_define(dllfile,'buffer_read_float32',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_read_float64 = external_define(dllfile,'buffer_read_float64',dll_cdecl,ty_real,1,ty_real);
global.define_buffer_write_int8 = external_define(dllfile,'buffer_write_int8',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_uint8 = external_define(dllfile,'buffer_write_uint8',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_int16 = external_define(dllfile,'buffer_write_int16',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_uint16 = external_define(dllfile,'buffer_write_uint16',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_int32 = external_define(dllfile,'buffer_write_int32',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_uint32 = external_define(dllfile,'buffer_write_uint32',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_int64 = external_define(dllfile,'buffer_write_int64',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_uint64 = external_define(dllfile,'buffer_write_uint64',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_intv = external_define(dllfile,'buffer_write_intv',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_uintv = external_define(dllfile,'buffer_write_uintv',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_float32 = external_define(dllfile,'buffer_write_float32',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_float64 = external_define(dllfile,'buffer_write_float64',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_read_string = external_define(dllfile,'buffer_read_string',dll_cdecl,ty_string,1,ty_real);
global.define_buffer_write_string = external_define(dllfile,'buffer_write_string',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_read_data = external_define(dllfile,'buffer_read_data',dll_cdecl,ty_string,2,ty_real,ty_real);
global.define_buffer_write_data = external_define(dllfile,'buffer_write_data',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_read_hex = external_define(dllfile,'buffer_read_hex',dll_cdecl,ty_string,2,ty_real,ty_real);
global.define_buffer_write_hex = external_define(dllfile,'buffer_write_hex',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_read_base64 = external_define(dllfile,'buffer_read_base64',dll_cdecl,ty_string,2,ty_real,ty_real);
global.define_buffer_write_base64 = external_define(dllfile,'buffer_write_base64',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_buffer_write_buffer = external_define(dllfile,'buffer_write_buffer',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_buffer_write_buffer_part = external_define(dllfile,'buffer_write_buffer_part',dll_cdecl,ty_real,4,ty_real,ty_real,ty_real,ty_real);
global.define_md5_begin = external_define(dllfile,'md5_begin',dll_cdecl,ty_real,0);
global.define_md5_end = external_define(dllfile,'md5_end',dll_cdecl,ty_real,0);
global.define_md5_read_file = external_define(dllfile,'md5_read_file',dll_cdecl,ty_real,1,ty_string);
global.define_md5_read_string = external_define(dllfile,'md5_read_string',dll_cdecl,ty_real,1,ty_string);
global.define_md5_read_buffer = external_define(dllfile,'md5_read_buffer',dll_cdecl,ty_real,1,ty_real);
global.define_md5_read_buffer_part = external_define(dllfile,'md5_read_buffer_part',dll_cdecl,ty_real,3,ty_real,ty_real,ty_real);
global.define_md5_result = external_define(dllfile,'md5_result',dll_cdecl,ty_string,0);
global.define_sha1_begin = external_define(dllfile,'sha1_begin',dll_cdecl,ty_real,0);
global.define_sha1_end = external_define(dllfile,'sha1_end',dll_cdecl,ty_real,0);
global.define_sha1_read_file = external_define(dllfile,'sha1_read_file',dll_cdecl,ty_real,1,ty_string);
global.define_sha1_read_string = external_define(dllfile,'sha1_read_string',dll_cdecl,ty_real,1,ty_string);
global.define_sha1_read_buffer = external_define(dllfile,'sha1_read_buffer',dll_cdecl,ty_real,1,ty_real);
global.define_sha1_read_buffer_part = external_define(dllfile,'sha1_read_buffer_part',dll_cdecl,ty_real,3,ty_real,ty_real,ty_real);
global.define_sha1_result = external_define(dllfile,'sha1_result',dll_cdecl,ty_string,0);
global.define_listeningsocket_create = external_define(dllfile,'listeningsocket_create',dll_cdecl,ty_real,0);
global.define_listeningsocket_destroy = external_define(dllfile,'listeningsocket_destroy',dll_cdecl,ty_real,1,ty_real);
global.define_listeningsocket_exists = external_define(dllfile,'listeningsocket_exists',dll_cdecl,ty_real,1,ty_real);
global.define_listeningsocket_is_listening = external_define(dllfile,'listeningsocket_is_listening',dll_cdecl,ty_real,1,ty_real);
global.define_listeningsocket_start_listening = external_define(dllfile,'listeningsocket_start_listening',dll_cdecl,ty_real,4,ty_real,ty_real,ty_real,ty_real);
global.define_listeningsocket_stop_listening = external_define(dllfile,'listeningsocket_stop_listening',dll_cdecl,ty_real,1,ty_real);
global.define_listeningsocket_can_accept = external_define(dllfile,'listeningsocket_can_accept',dll_cdecl,ty_real,1,ty_real);
global.define_listeningsocket_accept = external_define(dllfile,'listeningsocket_accept',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_socket_create = external_define(dllfile,'socket_create',dll_cdecl,ty_real,0);
global.define_socket_destroy = external_define(dllfile,'socket_destroy',dll_cdecl,ty_real,1,ty_real);
global.define_socket_exists = external_define(dllfile,'socket_exists',dll_cdecl,ty_real,1,ty_real);
global.define_socket_get_state = external_define(dllfile,'socket_get_state',dll_cdecl,ty_real,1,ty_real);
global.define_socket_reset = external_define(dllfile,'socket_reset',dll_cdecl,ty_real,1,ty_real);
global.define_socket_connect = external_define(dllfile,'socket_connect',dll_cdecl,ty_real,3,ty_real,ty_string,ty_real);
global.define_socket_update_read = external_define(dllfile,'socket_update_read',dll_cdecl,ty_real,1,ty_real);
global.define_socket_update_write = external_define(dllfile,'socket_update_write',dll_cdecl,ty_real,1,ty_real);
global.define_socket_shut_down = external_define(dllfile,'socket_shut_down',dll_cdecl,ty_real,1,ty_real);
global.define_socket_get_peer_address = external_define(dllfile,'socket_get_peer_address',dll_cdecl,ty_string,1,ty_real);
global.define_socket_read_data = external_define(dllfile,'socket_read_data',dll_cdecl,ty_real,3,ty_real,ty_real,ty_real);
global.define_socket_write_data = external_define(dllfile,'socket_write_data',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_socket_read_message = external_define(dllfile,'socket_read_message',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_socket_write_message = external_define(dllfile,'socket_write_message',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_socket_read_message_delimiter = external_define(dllfile,'socket_read_message_delimiter',dll_cdecl,ty_real,3,ty_real,ty_real,ty_string);
global.define_socket_write_message_delimiter = external_define(dllfile,'socket_write_message_delimiter',dll_cdecl,ty_real,3,ty_real,ty_real,ty_string);
global.define_socket_get_read_data_length = external_define(dllfile,'socket_get_read_data_length',dll_cdecl,ty_real,1,ty_real);
global.define_socket_get_write_data_length = external_define(dllfile,'socket_get_write_data_length',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_create = external_define(dllfile,'udpsocket_create',dll_cdecl,ty_real,0);
global.define_udpsocket_destroy = external_define(dllfile,'udpsocket_destroy',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_exists = external_define(dllfile,'udpsocket_exists',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_get_state = external_define(dllfile,'udpsocket_get_state',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_reset = external_define(dllfile,'udpsocket_reset',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_start = external_define(dllfile,'udpsocket_start',dll_cdecl,ty_real,3,ty_real,ty_real,ty_real);
global.define_udpsocket_set_destination = external_define(dllfile,'udpsocket_set_destination',dll_cdecl,ty_real,3,ty_real,ty_string,ty_real);
global.define_udpsocket_receive = external_define(dllfile,'udpsocket_receive',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_udpsocket_send = external_define(dllfile,'udpsocket_send',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_udpsocket_get_last_address = external_define(dllfile,'udpsocket_get_last_address',dll_cdecl,ty_string,1,ty_real);
global.define_udpsocket_get_last_port = external_define(dllfile,'udpsocket_get_last_port',dll_cdecl,ty_real,1,ty_real);
global.define_udpsocket_get_max_message_size = external_define(dllfile,'udpsocket_get_max_message_size',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_create = external_define(dllfile,'httprequest_create',dll_cdecl,ty_real,0);
global.define_httprequest_destroy = external_define(dllfile,'httprequest_destroy',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_exists = external_define(dllfile,'httprequest_exists',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_get_state = external_define(dllfile,'httprequest_get_state',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_set_request_header = external_define(dllfile,'httprequest_set_request_header',dll_cdecl,ty_real,4,ty_real,ty_string,ty_string,ty_real);
global.define_httprequest_remove_request_header = external_define(dllfile,'httprequest_remove_request_header',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_httprequest_clear_request_headers = external_define(dllfile,'httprequest_clear_request_headers',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_set_post_parameter = external_define(dllfile,'httprequest_set_post_parameter',dll_cdecl,ty_real,3,ty_real,ty_string,ty_string);
global.define_httprequest_set_post_parameter_file = external_define(dllfile,'httprequest_set_post_parameter_file',dll_cdecl,ty_real,4,ty_real,ty_string,ty_string,ty_real);
global.define_httprequest_remove_post_parameter = external_define(dllfile,'httprequest_remove_post_parameter',dll_cdecl,ty_real,2,ty_real,ty_string);
global.define_httprequest_clear_post_parameters = external_define(dllfile,'httprequest_clear_post_parameters',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_reset = external_define(dllfile,'httprequest_reset',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_connect = external_define(dllfile,'httprequest_connect',dll_cdecl,ty_real,3,ty_real,ty_string,ty_real);
global.define_httprequest_update = external_define(dllfile,'httprequest_update',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_get_status_code = external_define(dllfile,'httprequest_get_status_code',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_get_response_header_count = external_define(dllfile,'httprequest_get_response_header_count',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_get_response_header_name = external_define(dllfile,'httprequest_get_response_header_name',dll_cdecl,ty_string,2,ty_real,ty_real);
global.define_httprequest_get_response_header_value = external_define(dllfile,'httprequest_get_response_header_value',dll_cdecl,ty_string,2,ty_real,ty_real);
global.define_httprequest_find_response_header = external_define(dllfile,'httprequest_find_response_header',dll_cdecl,ty_string,2,ty_real,ty_string);
global.define_httprequest_get_message_body = external_define(dllfile,'httprequest_get_message_body',dll_cdecl,ty_string,1,ty_real);
global.define_httprequest_get_message_body_length = external_define(dllfile,'httprequest_get_message_body_length',dll_cdecl,ty_real,1,ty_real);
global.define_httprequest_get_message_body_buffer = external_define(dllfile,'httprequest_get_message_body_buffer',dll_cdecl,ty_real,2,ty_real,ty_real);
global.define_httprequest_urlencode = external_define(dllfile,'httprequest_urlencode',dll_cdecl,ty_string,2,ty_string,ty_real);
global.define_httprequest_urldecode = external_define(dllfile,'httprequest_urldecode',dll_cdecl,ty_string,1,ty_string);
